package com.routz.bitblog.blog.user.service.impl;

import com.routz.bitblog.blog.user.entity.User;
import com.routz.bitblog.blog.user.mapper.UserMapper;
import com.routz.bitblog.blog.user.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author routz
 * @since 2019-05-30
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public void editPersonalInformation(User user) {

    }

    @Override
    public void updatePassword(User user) {
        String id = user.getId();
        if (!StringUtils.hasText(id)) {
            throw new IllegalArgumentException("id null");
        }
    }
}
